<%@page import="com.swim.entity.RegisteredUser"%>
<%@page import="java.util.List"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>SWIM - Friends</title>
<link href='http://fonts.googleapis.com/css?family=Arvo'
	rel='stylesheet' type='text/css' />
<link href="css/style.css" rel="stylesheet" type="text/css"
	media="screen" />
</head>
<body>
<%
	Object admin = request.getSession().getAttribute("admin");
	Object auth = request.getSession().getAttribute("authenticated");

	%>
	<div id="menu-wrapper">
		<div id="menu">
			<ul>
				<li><a href="index.jsp">Homepage</a></li>
				<%if (auth != null && (Boolean) auth) {
				%>
				<li><a href="collaboration.jsp">Collaborations</a></li>
				<li><a href="friends.jsp">Friends</a></li>
				<li><a href="edit.jsp">Edit Profile</a></li>
				<li><a href="logout.jsp">Logout</a></li>
				
					<%if (admin == null || !(Boolean) admin) {
					%>	
					<li><a href="newskillreq.jsp">Request Skill</a></li>
					<%} %>
				<%} %>
			</ul>
		</div>
		<!-- end #menu -->
	</div>

	<div id="wrapper">
		<div id="header-wrapper">
			<div id="header">
				<div id="logo">
					<h1>
						<a href="#">SWIM</a>
					</h1>
					<p>"A social network for friends needing or offering help"</p>
				</div>
			</div>
		</div>
		<!-- end #header -->
		<div id="page">
			<div id="page-bgtop">
				<div id="page-bgbtm">
					<div id="content">
						<div class="post">
							<h2 class="title">Results</h2>
							<div class="entry">
								<p style="font-size: 15px;">Here are your results!</p>

								<ol>

								<% List<RegisteredUser> list = (List<RegisteredUser>) request.getAttribute("results");
								for(RegisteredUser user: list) {
									%><li><a href="profile.jsp?email=<%= user.getEmail() %>"><%= user.getName()+" "+user.getSurname() %></a></li><%					
								} %>
								</ol>
								
							</div>
						</div>
						<div style="clear: both;">&nbsp;</div>
					</div>
					<!-- end #content -->
					<div id="sidebar">
						<ul>
							<li>
								
							</li>
						</ul>
					</div>
					<!-- end #sidebar -->
					<div style="clear: both;">&nbsp;</div>
				</div>
			</div>
		</div>
		<!-- end #page -->
	</div>
	<div id="footer">
		<p></p>
	</div>
	<!-- end #footer -->
</body>
</html>